﻿var ApiUrl = "http://localhost:6260/";
$(function () {
    //现场记录表 - 房屋用途的下拉框数据读取
    $.ajax({
        type: "get",
        url: ApiUrl + "api/Dictionary/GetHouseType",
        data: {
            Dmenuid: 1
        },
        success: function (data, status) {
            if (status == "success") {
                $(data).each(function (i, item) {
                    $("#HouseUse").append("<option id=" + item.DictionaryID + " >" + item.DictionaryName + "</option>")
                })
            }
        },
        error: function (e) {

        },
        complete: function () {

        }
    });
    //抵押物去状况-交通便捷度
    $.ajax({
        type: "get",
        url: ApiUrl + "api/Dictionary/GetHouseType",
        data: {
            Dmenuid: 2
        },
        success: function (data, status) {
            if (status == "success") {
                $(data).each(function (i, item) {
                    $("#TrafficConvenience").append("<option id=" + item.DictionaryID + ">" + item.DictionaryName + "</option>")
                })
            }
        },
        error: function (e) {

        },
        complete: function () {

        }
    });

    //抵押物去状况-自然人文环境
    $.ajax({
        type: "get",
        url: ApiUrl + "api/Dictionary/GetHouseType",
        data: {
            Dmenuid: 3
        },
        success: function (data, status) {
            if (status == "success") {
                $(data).each(function (i, item) {
                    $("#Humanities").append("<option id=" + item.DictionaryID + ">" + item.DictionaryName + "</option>")
                })
            }
        },
        error: function (e) {

        },
        complete: function () {

        }
    });

    //抵押物去状况-居住社区成熟度
    $.ajax({
        type: "get",
        url: ApiUrl + "api/Dictionary/GetHouseType",
        data: {
            Dmenuid: 4
        },
        success: function (data, status) {
            if (status == "success") {
                $(data).each(function (i, item) {
                    $("#CommunityMaturity").append("<option id=" + item.DictionaryID + ">" + item.DictionaryName + "</option>")
                })
            }
        },
        error: function (e) {

        },
        complete: function () {

        }
    });

    //抵押物去状况-基础设施配套情况
    $.ajax({
        type: "get",
        url: ApiUrl + "api/Dictionary/GetHouseType",
        data: {
            Dmenuid: 5
        },
        success: function (data, status) {
            if (status == "success") {
                $(data).each(function (i, item) {
                    $("#FacilityMating").append("<option id=" + item.DictionaryID + ">" + item.DictionaryName + "</option>")
                })
            }
        },
        error: function (e) {

        },
        complete: function () {

        }
    });

    //抵押物去状况-配套设施
    $.ajax({
        type: "get",
        url: ApiUrl + "api/Dictionary/GetHouseType",
        data: {
            Dmenuid: 6
        },
        success: function (data, status) {
            if (status == "success") {
                $(data).each(function (i, item) {
                    $("#MatingFacility").append("<option id=" + item.DictionaryID + ">" + item.DictionaryName + "</option>")
                })
            }
        },
        error: function (e) {

        },
        complete: function () {

        }
    });

    //小区状况-小区封闭性
    $.ajax({
        type: "get",
        url: ApiUrl + "api/Dictionary/GetHouseType",
        data: {
            Dmenuid: 7
        },
        success: function (data, status) {
            if (status == "success") {
                $(data).each(function (i, item) {
                    $("#C_closeID").append("<option id=" + item.DictionaryID + ">" + item.DictionaryName + "</option>")
                })
            }
        },
        error: function (e) {

        },
        complete: function () {

        }
    });
    //小区状况-居住小区楼宇构成
    $.ajax({
        type: "get",
        url: ApiUrl + "api/Dictionary/GetHouseType",
        data: {
            Dmenuid: 8
        },
        success: function (data, status) {
            if (status == "success") {
                $(data).each(function (i, item) {
                    $("#C_buildingID").append("<option id=" + item.DictionaryID + ">" + item.DictionaryName + "</option>")
                })
            }
        },
        error: function (e) {

        },
        complete: function () {

        }
    });

    //小区状况-交通组织方式
    $.ajax({
        type: "get",
        url: ApiUrl + "api/Dictionary/GetHouseType",
        data: {
            Dmenuid: 9
        },
        success: function (data, status) {
            if (status == "success") {
                $(data).each(function (i, item) {
                    $("#C_trafficID").append("<option id=" + item.DictionaryID + ">" + item.DictionaryName + "</option>")
                })
            }
        },
        error: function (e) {

        },
        complete: function () {

        }
    });
    //小区状况-景观及绿化
    $.ajax({
        type: "get",
        url: ApiUrl + "api/Dictionary/GetHouseType",
        data: {
            Dmenuid: 10
        },
        success: function (data, status) {
            if (status == "success") {
                $(data).each(function (i, item) {
                    $("#C_afforestID").append("<option id=" + item.DictionaryID + ">" + item.DictionaryName + "</option>")
                })
            }
        },
        error: function (e) {

        },
        complete: function () {

        }
    });

    //小区状况-容积率
    $.ajax({
        type: "get",
        url: ApiUrl + "api/Dictionary/GetHouseType",
        data: {
            Dmenuid: 11
        },
        success: function (data, status) {
            if (status == "success") {
                $(data).each(function (i, item) {
                    $("#C_volumeID").append("<option id=" + item.DictionaryID + ">" + item.DictionaryName + "</option>")
                })
            }
        },
        error: function (e) {

        },
        complete: function () {

        }
    });

    //小区状况-车位状况
    $.ajax({
        type: "get",
        url: ApiUrl + "api/Dictionary/GetHouseType",
        data: {
            Dmenuid: 12
        },
        success: function (data, status) {
            if (status == "success") {
                $(data).each(function (i, item) {
                    $("#C_stallID").append("<option id=" + item.DictionaryID + ">" + item.DictionaryName + "</option>")
                })
            }
        },
        error: function (e) {

        },
        complete: function () {

        }
    });

    //小区状况-物业公司
    $.ajax({
        type: "get",
        url: ApiUrl + "api/Dictionary/GetHouseType",
        data: {
            Dmenuid: 13
        },
        success: function (data, status) {
            if (status == "success") {
                $(data).each(function (i, item) {
                    $("#C_propertyID").append("<option id=" + item.DictionaryID + ">" + item.DictionaryName + "</option>")
                })
            }
        },
        error: function (e) {

        },
        complete: function () {

        }
    });

    //建筑公共部位状况-房屋结构
    $.ajax({
        type: "get",
        url: ApiUrl + "api/Dictionary/GetHouseType",
        data: {
            Dmenuid: 14
        },
        success: function (data, status) {
            if (status == "success") {
                $(data).each(function (i, item) {
                    $("#F_structureID").append("<option id=" + item.DictionaryID + ">" + item.DictionaryName + "</option>")
                })
            }
        },
        error: function (e) {

        },
        complete: function () {

        }
    });

    //建筑公共部位状况-建筑类型
    $.ajax({
        type: "get",
        url: ApiUrl + "api/Dictionary/GetHouseType",
        data: {
            Dmenuid: 15
        },
        success: function (data, status) {
            if (status == "success") {
                $(data).each(function (i, item) {
                    $("#F_TypesID").append("<option id=" + item.DictionaryID + ">" + item.DictionaryName + "</option>")
                })
            }
        },
        error: function (e) {

        },
        complete: function () {

        }
    });

    //建筑公共部位状况-外立面装饰
    $.ajax({
        type: "get",
        url: ApiUrl + "api/Dictionary/GetHouseType",
        data: {
            Dmenuid: 16
        },
        success: function (data, status) {
            if (status == "success") {
                $(data).each(function (i, item) {
                    $("#F_facadeID").append("<option id=" + item.DictionaryID + ">" + item.DictionaryName + "</option>")
                })
            }
        },
        error: function (e) {

        },
        complete: function () {

        }
    });

    //建筑公共部位状况-公共部位装修
    $.ajax({
        type: "get",
        url: ApiUrl + "api/Dictionary/GetHouseType",
        data: {
            Dmenuid: 17
        },
        success: function (data, status) {
            if (status == "success") {
                $(data).each(function (i, item) {
                    $("#F_commonalityID").append("<option id=" + item.DictionaryID + ">" + item.DictionaryName + "</option>")
                })
            }
        },
        error: function (e) {

        },
        complete: function () {

        }
    });

    //建筑公共部位状况-电梯
    $.ajax({
        type: "get",
        url: ApiUrl + "api/Dictionary/GetHouseType",
        data: {
            Dmenuid: 18
        },
        success: function (data, status) {
            if (status == "success") {
                $(data).each(function (i, item) {
                    $("#F_elevatorID").append("<option id=" + item.DictionaryID + ">" + item.DictionaryName + "</option>")
                })
            }
        },
        error: function (e) {

        },
        complete: function () {

        }
    });

    //建筑公共部位状况-供气
    $.ajax({
        type: "get",
        url: ApiUrl + "api/Dictionary/GetHouseType",
        data: {
            Dmenuid: 19
        },
        success: function (data, status) {
            if (status == "success") {
                $(data).each(function (i, item) {
                    $("#F_supplyID").append("<option id=" + item.DictionaryID + ">" + item.DictionaryName + "</option>")
                })
            }
        },
        error: function (e) {

        },
        complete: function () {

        }
    });

    //建筑公共部位状况-供水
    $.ajax({
        type: "get",
        url: ApiUrl + "api/Dictionary/GetHouseType",
        data: {
            Dmenuid: 20
        },
        success: function (data, status) {
            if (status == "success") {
                $(data).each(function (i, item) {
                    $("#F_waterID").append("<option id=" + item.DictionaryID + ">" + item.DictionaryName + "</option>")
                })
            }
        },
        error: function (e) {

        },
        complete: function () {

        }
    });

    //建筑公共部位状况-供暖
    $.ajax({
        type: "get",
        url: ApiUrl + "api/Dictionary/GetHouseType",
        data: {
            Dmenuid: 21
        },
        success: function (data, status) {
            if (status == "success") {
                $(data).each(function (i, item) {
                    $("#F_heatingID").append("<option id=" + item.DictionaryID + ">" + item.DictionaryName + "</option>")
                })
            }
        },
        error: function (e) {

        },
        complete: function () {

        }
    });

    //建筑公共部位状况-门禁系统
    $.ajax({
        type: "get",
        url: ApiUrl + "api/Dictionary/GetHouseType",
        data: {
            Dmenuid: 22
        },
        success: function (data, status) {
            if (status == "success") {
                $(data).each(function (i, item) {
                    $("#F_entranceID").append("<option id=" + item.DictionaryID + ">" + item.DictionaryName + "</option>")
                })
            }
        },
        error: function (e) {

        },
        complete: function () {

        }
    });



    //户内部分-朝向
    $.ajax({
        type: "get",
        url: ApiUrl + "api/Dictionary/GetHouseType",
        data: {
            Dmenuid: 23
        },
        success: function (data, status) {
            if (status == "success") {
                $(data).each(function (i, item) {
                    $("#Orientation").append("<option id=" + item.DictionaryID + ">" + item.DictionaryName + "</option>")
                })
            }
        },
        error: function (e) {

        },
        complete: function () {

        }
    });
    //户内部分-住宅类型
    $.ajax({
        type: "get",
        url: ApiUrl + "api/Dictionary/GetHouseType",
        data: {
            Dmenuid: 24
        },
        success: function (data, status) {
            if (status == "success") {
                $(data).each(function (i, item) {
                    $("#HouseForm").append("<option id=" + item.DictionaryID + ">" + item.DictionaryName + "</option>")
                })
            }
        },
        error: function (e) {

        },
        complete: function () {

        }
    });
    //户内部分-各房间装修情况
    $.ajax({
        type: "get",
        url: ApiUrl + "api/Dictionary/GetHouseType",
        data: {
            Dmenuid: 25
        },
        success: function (data, status) {
            if (status == "success") {
                $(data).each(function (i, item) {
                    $("#EachHouseDecoration").append("<option id=" + item.DictionaryID + ">" + item.DictionaryName + "</option>")
                })
            }
        },
        error: function (e) {

        },
        complete: function () {

        }
    });
    //户内部分-各房间装修情况
    $.ajax({
        type: "get",
        url: ApiUrl + "api/Dictionary/GetHouseType",
        data: {
            Dmenuid: 25
        },
        success: function (data, status) {
            if (status == "success") {
                $(data).each(function (i, item) {
                    $("#EachHouseDecoration1").append("<option id=" + item.DictionaryID + ">" + item.DictionaryName + "</option>")
                })
            }
        },
        error: function (e) {

        },
        complete: function () {

        }
    });
    //户内部分-各房间装修情况
    $.ajax({
        type: "get",
        url: ApiUrl + "api/Dictionary/GetHouseType",
        data: {
            Dmenuid: 25
        },
        success: function (data, status) {
            if (status == "success") {
                $(data).each(function (i, item) {
                    $("#EachHouseDecoration2").append("<option id=" + item.DictionaryID + ">" + item.DictionaryName + "</option>")
                })
            }
        },
        error: function (e) {

        },
        complete: function () {

        }
    });
    //户内部分-各房间装修情况
    $.ajax({
        type: "get",
        url: ApiUrl + "api/Dictionary/GetHouseType",
        data: {
            Dmenuid: 25
        },
        success: function (data, status) {
            if (status == "success") {
                $(data).each(function (i, item) {
                    $("#EachHouseDecoration3").append("<option id=" + item.DictionaryID + ">" + item.DictionaryName + "</option>")
                })
            }
        },
        error: function (e) {

        },
        complete: function () {

        }
    });
});